package com.yq.ylmall.client.cart.fallback;

import com.yq.ylmall.client.cart.CartFeignClient;
import com.yq.ylmall.dto.cart.CartOrderDto;
import com.yq.ylmall.vo.cart.CartInfoPageVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class CartFeignFallback implements CartFeignClient {

    @Override
    public List<CartInfoPageVo> getCartList(Long userId) {
        log.warn("服务熔断：获取购物车数据");
        return null;
    }

    @Override
    public void batchRemove(CartOrderDto cartOrderDto) {
        log.warn("服务熔断：批量删除购物车");
    }
}
